package kandl.automation.testsuite;

import kandl.automation.Browser;

public class TestProfile {

    private final String id;
    private final String url;
    private final Browser browser;
    private final String browserVersion;
    private final String platform;
    private final boolean enabled;

    public TestProfile(String id, String url, Browser browser, String browserVersion, String platform, boolean enabled) {
        this.id = id;
        this.url = url;
        this.browser = browser;
        this.browserVersion = browserVersion;
        this.platform = platform;
        this.enabled = enabled;
    }

    public String getId() {
        return id;
    }

    public String getUrl() {
        return url;
    }

    public Browser getBrowser() {
        return browser;
    }

    public String getBrowserVersion() {
        return browserVersion;
    }

    public String getPlatform() {
        return platform;
    }

    public boolean isEnabled() {
        return enabled;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TestProfile that = (TestProfile) o;

        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }
}
